static unsigned char readbuf[1024];
+extern struct proc_dir_entry *xeno_base;
+
/* Helpers, implemented at the bottom. */
u32 getipaddr(const char *buff, unsigned int len);
u16 antous(const char *buff, int len);
static int __init init_module(void)
{
*readbuf = '\0';
- proc_vfr = create_proc_entry ("xeno/vfr", 0600, &proc_root);
+ proc_vfr = create_proc_entry ("vfr", 0600, xeno_base);
if ( proc_vfr != NULL )
{
proc_vfr->owner = THIS_MODULE;
static void __exit cleanup_module(void)
{
if ( proc_vfr == NULL ) return;
- remove_proc_entry("xeno/vfr", &proc_root);
+ remove_proc_entry("vfr", xeno_base);
proc_vfr = NULL;
}